package br.com.werp.suporte.Software;
import java.util.*;
import org.apache.struts.action.*;
import javax.servlet.http.*;

/**
 * Creation Date 03/09/2004 10:25:02
 * Last Modify Date 07/07/2006 10:25:57
 */

public class SOActionForm extends org.apache.struts.action.ActionForm {
  public String stop_id;
  public String stop_nome;
  public String stop_versao;
  private boolean valida = false;
  public SOActionForm() {
  }
  /**
    * STOP_ID: Gets the value of this field.
    */
  public String getStop_id() {
    return stop_id;
  }
  /**
     * STOP_ID: Sets thhe value for this field.
     */
  public void setStop_id(String STOP_ID) {
    stop_id = STOP_ID;
  }
  /**
    * STOP_NOME: Gets the value of this field.
    */
  public String getStop_nome() {
    return stop_nome;
  }
  /**
     * STOP_NOME: Sets thhe value for this field.
     */
  public void setStop_nome(String STOP_NOME) {
    stop_nome = STOP_NOME;
  }
  /**
    * STOP_VERSAO: Gets the value of this field.
    */
  public String getStop_versao() {
    return stop_versao;
  }
  /**
     * STOP_VERSAO: Sets thhe value for this field.
     */
  public void setStop_versao(String STOP_VERSAO) {
    stop_versao = STOP_VERSAO;
  }
  /**
    * Reset all fields.
    */
  public void reset(org.apache.struts.action.ActionMapping mapping,
      javax.servlet.http.HttpServletRequest request) {
    stop_id = null;
    stop_nome = null;
    stop_versao = null;
  }
  /**
    * Validate fields and return ActionErrors.
    */

  public ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
      javax.servlet.http.HttpServletRequest request) {
    ActionErrors errors = new ActionErrors();
    valida = false;
    if (!com.egen.util.struts.Token.isTokenValid(mapping, request)) {
      errors.add("Warning", new ActionError("token.error","<br>","","",""));
    }
    com.egen.util.struts.Token.saveToken(mapping, request);
    if (errors != null && errors.size() > 0) {
      javax.servlet.http.HttpSession session = request.getSession(true);
      ActionForward actionForward = null;
      session.setAttribute(mapping.getName(), this);
    }
    return errors;
  }
}
